using System;
using System.Collections.Generic;
using System.Text;

using Google.GData.Client;
using System.Net;
using System.Xml;
using System.Text.RegularExpressions;


namespace puyan_blogger
{
    class ServiceFactory
    {
        private ServiceFactory() {}

        public static Service ServiceFactoryGenerator(AppInfo appinfo, UserInfo login) {
            Service service = new Service(appinfo.Servicename, appinfo.Appname);
            NetworkCredential creds = new NetworkCredential(login.Username, login.Password);
            service.Credentials = creds;
            return service;
        }
    }
}
